package com.project.personnel.service;

import com.project.personnel.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author diaominyh
 * @since 2022-12-12
 */
public interface EmployeeService extends IService<Employee> {
    List<Employee> getAllLink();

    List<Employee> getAllList();

    List<Employee> getAdvanced(Integer current, Integer size, Employee employee, Date[] beginDates);

    Boolean add(Employee employee);

    Boolean addMultitude(@Param("list") List<Employee> list);

    Boolean delete(Integer id);

    Boolean updateManual(Employee employee);

    Employee getEmployeeById(Integer id);

    Employee getEmployee(Integer id);

    Integer maxWI();

    Integer updSalaryById(@Param("eid") Integer eid, @Param("sid") Integer sid);

    Long getTotal(@Param("employee") Employee employee, @Param("beginDate") Date[] beginDate);

    List<Employee> getAll(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);
    int totalCount();

    List<Employee> getcheckall(Integer current, Integer size);
    List<Employee> checkListAll();
}
